//
//  RTDetailInfoTableCell.m
//  RBToyAPI
//
//  Created by baxiang on 2018/2/1.
//  Copyright © 2018年 roobo. All rights reserved.
//

#import "RTDetailInfoTableCell.h"

@implementation RTDetailInfoTableCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        UILabel *namelab = [UILabel new];
        [self.contentView addSubview:namelab];
        [namelab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.mas_equalTo(self.contentView.mas_width).multipliedBy(3);
            make.top.bottom.mas_equalTo(0);
            make.left.mas_equalTo(10);
        }];
        _namelab = namelab;
        UILabel *contentlab = [UILabel new];
        [self.contentView addSubview:contentlab];
        contentlab.textAlignment = NSTextAlignmentRight;
        [contentlab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.mas_equalTo(self.contentView.mas_width).multipliedBy(3);
            make.top.bottom.mas_equalTo(0);
            make.right.mas_equalTo(-10);
        }];
        _contentlab = contentlab;
        
        UIView *bottomLine = [UIView new];
        bottomLine.backgroundColor = UIColorHex(0xe6e6e6);
        [self.contentView addSubview:bottomLine];
        [bottomLine mas_makeConstraints:^(MASConstraintMaker *make) {
            make.bottom.mas_equalTo(0);
            make.height.mas_equalTo(1);
            make.left.right.mas_equalTo(0);
        }];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
